import request from '@/utils/request'

// 查询记录距离列表
export function listDistance(query) {
  return request({
    url: '/record/distance/list',
    method: 'get',
    params: query
  })
}

// 查询记录距离详细
export function getDistance(distanceId) {
  return request({
    url: '/record/distance/' + distanceId,
    method: 'get'
  })
}

// 新增记录距离
export function addDistance(data) {
  return request({
    url: '/record/distance',
    method: 'post',
    data: data
  })
}

// 修改记录距离
export function updateDistance(data) {
  return request({
    url: '/record/distance',
    method: 'put',
    data: data
  })
}

// 删除记录距离
export function delDistance(distanceId) {
  return request({
    url: '/record/distance/' + distanceId,
    method: 'delete'
  })
}
